Optimal. Leaf size=30 \[ \frac {A \log (x)}{a}-\frac {(A b-a B) \log (a+b x)}{a b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {72} \[ \frac {A \log (x)}{a}-\frac {(A b-a B) \log (a+b x)}{a b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 72
Rubi steps
\begin {align*} \int \frac {A+B x}{x (a+b x)} \, dx &=\int \left (\frac {A}{a x}+\frac {-A b+a B}{a (a+b x)}\right ) \, dx\\ &=\frac {A \log (x)}{a}-\frac {(A b-a B) \log (a+b x)}{a b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 29, normalized size = 0.97 \[ \frac {(a B-A b) \log (a+b x)}{a b}+\frac {A \log (x)}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.91, size = 28, normalized size = 0.93 \[ \frac {A b \log \relax (x) + {\left (B a - A b\right )} \log \left (b x + a\right )}{a b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.09, size = 31, normalized size = 1.03 \[ \frac {A \log \left ({\left | x \right |}\right )}{a} + \frac {{\left (B a - A b\right )} \log \left ({\left | b x + a \right |}\right )}{a b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 32, normalized size = 1.07 \[ \frac {A \ln \relax (x )}{a}-\frac {A \ln \left (b x +a \right )}{a}+\frac {B \ln \left (b x +a \right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.14, size = 29, normalized size = 0.97 \[ \frac {A \log \relax (x)}{a} + \frac {{\left (B a - A b\right )} \log \left (b x + a\right )}{a b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.12, size = 28, normalized size = 0.93 \[ \frac {A\,\ln \relax (x)}{a}-\ln \left (a+b\,x\right )\,\left (\frac {A}{a}-\frac {B}{b}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.65, size = 41, normalized size = 1.37 \[ \frac {A \log {\relax (x )}}{a} + \frac {\left (- A b + B a\right ) \log {\left (x + \frac {- A a + \frac {a \left (- A b + B a\right )}{b}}{- 2 A b + B a} \right )}}{a b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________